package com.github.bubbleview.sample;

import com.github.library.bubbleview.BubbleElement;
import ohos.aafwk.ability.delegation.AbilityDelegatorRegistry;
import ohos.agp.utils.RectFloat;
import org.junit.Test;

import static org.junit.Assert.assertEquals;
import static org.junit.Assert.assertNotNull;

public class ExampleOhosTest {

    /**
     * testBundleName
     */
    @Test
    public void testBundleName() {
        final String actualBundleName = AbilityDelegatorRegistry.getArguments().getTestBundleName();
        assertEquals("com.github.bubbleview.sample", actualBundleName);
    }

    /**
     * testBubbleElement
     */
    @Test
    public void testBubbleElement(){

        BubbleElement build = new BubbleElement.Builder()
                .rect(new RectFloat(0f,0f,100f,100f))
                .arrowLocation(BubbleElement.ArrowLocation.RIGHT)
                .angle(10)
                .arrowHeight(10)
                .arrowWidth(10)
                .arrowPosition(15)
                .arrowCenter(true)
                .build();

        assertNotNull(build);
    }
}